<template>
	<view>
		<scroll-view scroll-y="true" class="content" :enhanced="true" :bounces="false" :show-scrollbar="false">
			<view class="my">
				<view class="basic">
					<view class="d-flex a-center j-center basic_box">
						<view class="">
							<view class="money mb10">999.00</view>
							<view class="name">累计充值</view>
						</view>
						<view class="d-flex flex-column a-center j-center ml25 mr25">
							<view>
								<u-icon name="level" color="#fff" size="48"></u-icon>
							</view>
							<view class="name">Lv36</view>
						</view>
						<view class="">
							<view class="money mb10">999.00</view>
							<view class="name">下一等级还差</view>
						</view>
					</view>
				</view>
				<view class="top">
					<view class="top_box" @click="goPageLevel">
						<view class="d-flex j-sb">
							<view class="d-flex flex-column j-sb">
								<view class="dqdj">当前等级</view>
								<view class="level">钻石贵宾</view>
								<view class="time">有效期至2025.05.21</view>
							</view>
							<view class="mr30">
								<view style="height: 130rpx;width: 130rpx;background-color: aqua;"></view>
								<!-- <u--image src="/static/img/my/Frame.png" width="40rpx" height="40rpx"></u--image> -->
							</view>
						</view>
						<view class="mt15">
							<progress percent="80" activeColor="#1c774e" show-info stroke-width="3" font-size="14" />
						</view>
						<view class="levelDesc">
							还需充值消费181点成长值升级至下一级，升级后解锁更高级特权
						</view>
					</view>
				</view>
				<view class="center mt20">
					<view class="title">
						<view class="hytq mr10">会员特权</view>
					</view>
				</view>
				<view class="center">
					<view class="center_box1 d-flex a-center">
						<view class="d-flex a-center j-sb w100p">
							<view class="zk">享受折扣八折</view>
							<view class="yj">永久</view>
						</view>
					</view>
				</view>
				<view class="center mt20">
					<view class="title">
						<view class="hytq mr10">成长攻略</view>
					</view>
				</view>
				<view class="center">
					<view class="center_box d-flex flex-column j-sa">
						<view class="d-flex j-sb a-center">
							<view class="zk">单次充值金额</view>
							<view class="yj">20000元</view>
						</view>
						<view class="d-flex j-sb a-center">
							<view class="zk">累计充值金额</view>
							<view class="yj">20000元</view>
						</view>
					</view>
				</view>
				<view class="bottom d-flex j-center a-center mt20" @click="goPageLevelRules">
					<view class="">
						<view class="">会员规则</view>
					</view>
					<view class="mt5">
						<uni-icons type="forward" size="18" color="#999999"></uni-icons>
					</view>
				</view>


				<!-- <tab-bar-view :tabCode="'2'"></tab-bar-view> -->
			</view>
		</scroll-view>
	</view>
</template>

<script>
	import {

	} from '@/api/index'
	export default {
		onLoad() {},
		onReady() {
			// 隐藏导航栏
			// uni.hideTabBar({});
		},
		data() {
			return {
				background_img: uni.getStorageSync('setUrl'),
				user: {},
				version: "",
				ip: "",
				pwdDisable: false,
				newPassword: null
			}
		},
		methods: {
			//  我的会员等级规则
			goPageLevelRules() {
				uni.navigateTo({
					url: "/pages/my/levelRules/levelRules"
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		//可视高度，需要在多大的盒子中进行滑动
		height: 100vh;
		width: 100%;
	}

	.my {
		height: 100vh;
		background-color: #f5f5f5;
		font-family: Source Han Sans CN, Source Han Sans CN-500;
	}

	.basic {
		display: flex;
		flex-direction: column;
		align-items: center;
		background-color: #77C7A2;
		height: 350rpx;
		box-sizing: border-box;


		.basic_box {
			width: 700rpx;
			height: 230rpx;

			.name {
				font-size: 24rpx;
				color: #fff;
				font-weight: 400;
			}

			.money {
				font-size: 48rpx;
				color: #333333;
				font-weight: 500;
			}
		}
	}

	.top {
		margin-top: -120rpx;
		display: flex;
		flex-direction: column;
		align-items: center;

		.top_box {
			width: 700rpx;
			height: 300rpx;
			padding: 26rpx 26rpx;
			box-sizing: border-box;
			border-radius: 12rpx;
			background: linear-gradient(180deg, #53b789, #8cdfb7 100%);

			.dqdj {
				font-size: 24rpx;
				font-weight: 400;
				color: #454545;
				line-height: 24rpx;
			}

			.level {
				font-size: 36rpx;
				font-weight: 600;
				color: #fff;
			}

			.time {
				font-size: 24rpx;
				font-weight: 400;
				color: #747474;
			}

			.levelDesc {
				color: #62997a;
				font-size: 24rpx;
				font-weight: 400;
			}
		}
	}


	.center {
		display: flex;
		flex-direction: column;
		align-items: center;

		.title {
			width: 700rpx;
			color: #333333;
			font-size: 36rpx;
			font-weight: 500;
		}

		.center_box1 {
			width: 700rpx;
			height: 120rpx;
			padding: 26rpx 26rpx;
			box-sizing: border-box;
			border-radius: 12rpx;
			background: #ffffff;
			margin-top: 30rpx;
			box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.10);

			.hytq {
				font-size: 36rpx;
				font-weight: 500;
				color: #333333;
			}

			.zk {
				font-weight: 400;
				font-size: 32rpx;
			}

			.yj {
				font-size: 28rpx;
				color: #999999;
			}
		}

		.center_box {
			width: 700rpx;
			height: 170rpx;
			padding: 26rpx 26rpx;
			box-sizing: border-box;
			border-radius: 12rpx;
			background: #ffffff;
			margin-top: 30rpx;
			box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.10);

			.hytq {
				font-size: 36rpx;
				font-weight: 500;
				color: #333333;
			}

			.zk {
				font-weight: 400;
				font-size: 32rpx;
			}

			.yj {
				font-size: 28rpx;
				color: #999999;
			}
		}
	}

	.bottom {
		font-size: 32rpx;
		font-weight: 400;
		color: #999999;
	}
</style>